package com.my.study.bean;

import java.io.Serializable;

/**
 * @author: yidujun
 * @create: 2021/07/21 16:24
 */
public class PrintBean implements Serializable {
    private static final long serialVersionUID = 1730150370422158507L;

    private String msg;

    public PrintBean() {
    }

    public PrintBean(String msg) {
        this.msg = msg;
        System.out.println(msg);
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "PrintBean{" +
                "msg='" + msg + '\'' +
                '}';
    }
}
